package top.shiyiri.shops.dao;

import top.shiyiri.shops.bean.PageViewCountTop10;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Aunean
 * @date 2021/12/29
 */
public interface PageViewCountTop10Dao {

    @Select("select * from page_view_count_top10 limit #{begin}, #{size}")
    List<PageViewCountTop10> pageViewCountTop10ByPage(@Param("begin") int begin,@Param("size") int size);

    @Select("select count(*) from page_view_count_top10")
    int totalLines();

    @Select("select * from page_view_count_top10")
    List<PageViewCountTop10> pageViewCountTop10();
}
